package utils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;


public class Utils {
	
	
	public static int generateConfirmationNumber(){
		int confirmationNumber = 0;
		Random randomGenerator = new Random();
	    for (int i = 1; i <= 10; ++i){
	    	int randomInt = randomGenerator.nextInt(10);
	    	confirmationNumber += randomInt * (Math.pow(10, i-1));
	    }
		
		return confirmationNumber;
	}
	
	public static String getStrCurrentDateTime(){
		DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
		Date date = new Date();
		return dateFormat.format(date);
	}
	
	
	
	
	private Utils(){
		
	}

}
